package com.edu.bcht;

import com.edu.bcht.config.DBConfig1;
import com.edu.bcht.config.DBConfig2;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.context.annotation.ComponentScan;

@ComponentScan(basePackages = "com.edu.bcht")
@EnableAutoConfiguration
@EnableCaching// 开启缓存注解
@EnableConfigurationProperties(value = { DBConfig1.class, DBConfig2.class })
public class App {
    public static void main(String[] args) {
        SpringApplication.run(App.class,args);
    }
}
